/**
 * 
 */
package org.corpus.english.model;

/**
 * @author robbiecheng
 * 
 */
public class WordResultConfig {
	private boolean word;
	private boolean phonetics;
	private boolean pos;
	private boolean chinese;
	private boolean synonyms;
	private boolean origin;
	private boolean sentences;
	private boolean memory;
	private boolean category;
	private boolean allEnabled;

	public WordResultConfig(boolean phonetics, boolean pos, boolean chinese) {
		this.phonetics = phonetics;
		this.pos = pos;
		this.chinese = chinese;
	}

	public boolean isWord() {
		return word;
	}

	public void setWord(boolean word) {
		this.word = word;
	}

	public boolean isPhonetics() {
		return phonetics;
	}

	public void setPhonetics(boolean phonetics) {
		this.phonetics = phonetics;
	}

	public boolean isPos() {
		return pos;
	}

	public void setPos(boolean pos) {
		this.pos = pos;
	}

	public boolean isChinese() {
		return chinese;
	}

	public void setChinese(boolean chinese) {
		this.chinese = chinese;
	}

	public boolean isSynonyms() {
		return synonyms;
	}

	public void setSynonyms(boolean synonyms) {
		this.synonyms = synonyms;
	}

	public boolean isOrigin() {
		return origin;
	}

	public void setOrigin(boolean origin) {
		this.origin = origin;
	}

	public boolean isSentences() {
		return sentences;
	}

	public void setSentences(boolean sentences) {
		this.sentences = sentences;
	}

	public boolean isMemory() {
		return memory;
	}

	public void setMemory(boolean memory) {
		this.memory = memory;
	}

	public boolean isCategory() {
		return category;
	}

	public void setCategory(boolean category) {
		this.category = category;
	}

	public boolean isAllEnabled() {
		return allEnabled;
	}

	public void setAllEnabled(boolean allEnabled) {
		this.allEnabled = allEnabled;

		this.word = allEnabled;
		this.phonetics = allEnabled;
		this.pos = allEnabled;
		this.chinese = allEnabled;
		this.origin = allEnabled;
		this.synonyms = allEnabled;
		this.memory = allEnabled;
		this.category = allEnabled;
		this.sentences = allEnabled;
	}

}
